<?php include $this->admin_tpl('meta', 'admin');?>
<title>重新获取商品</title>
<meta name="referrer" content="no-referrer" />
<style>
.btn{padding:5px 8px;height:30px;line-height:30px;white-space:nowrap;display:inline-block;margin-left:5px;}
</style>
</head>
<body>
<div class="page-container" style="margin:0;padding:0 10px;">
	<div class="panel-body mt-10" style="padding:0;">
	<form action="" method="get" id="search">
	<input type="hidden" value="reget_item" name="action">
	<div class="select-box inline">
		<select name="jst_id" class="select" style="width:100px;">
			<option value="0">选择聚水潭</option>
			<?php
			$jst = get_jst_list();
			foreach($jst as $val){ echo '<option value="'.$val['id'].'">'.$val['short_name'].'</option>'; }
			?>
		</select>
	</div>
	<a class="btn btn-success radius" href="javascript:void(0)" id="btn_search">确定操作</a>
	</form>
	</div>
</div>
<?php include $this->admin_tpl('footer', 'admin');?>
<script type="text/javascript" src="<?php echo STATIC_URL;?>plugin/laydate/1.1/laydate.js"></script>
<script type="text/javascript">
$('.btn').click(function(){
//return layer.msg('测试测试', {icon:1, time:200000}); 
	$.ajax({
		type: 'post',
		url: '<?php echo U('reget_item');?>', 
		data: $(this).parent('form').serialize(),
		dataType: "json", 
		success: function (res) {
			if(res.status){
				layer.msg(res.message, {icon:1, time:2000}); 
			}else{
				layer.msg(res.message, {icon:2});
			}
		}
	})
})

</script>
</body>
</html>